package com.example.typhoonproject.common.utils;

public class Util {

    /**
     * 通过风速计算台风强度
     * @param maxwp
     * @return
     */
    public static String getIntensity(double maxwp) {
        if (maxwp <= 17.1) return "TD";
        if (maxwp <= 24.4) return "TS";
        if (maxwp <= 32.6) return "STS";
        if (maxwp <= 41.4) return "TY";
        if (maxwp <= 50.9) return "STY";
        return "SuperTY";
    }
}
